package com.xsy.carRental.service;

import com.xsy.carRental.dto.VehicleAddDTO;
import com.xsy.carRental.dto.VehiclePageQueryDTO;
import com.xsy.carRental.dto.VehicleUpdateDTO;
import com.xsy.carRental.entity.Vehicle;
import com.xsy.carRental.result.PageResult;

public interface VehicleService {

    /**
     * 新增车辆
     * @param vehicleAddDTO
     */
    void add(VehicleAddDTO vehicleAddDTO);

    /**
     * 分页查询车辆
     * @param vehiclePageQueryDTO
     * @return
     */
    PageResult pageQuery(VehiclePageQueryDTO vehiclePageQueryDTO);


    /**
     * 更新车辆信息
     * @param vehicleUpdateDTO
     */
    void update(VehicleUpdateDTO vehicleUpdateDTO);

    /**
     * 根据id删除车辆
     * @param vehicleId
     */
    void delete(int vehicleId   );

    /**
     * 根据id查询车辆详细信息
     * @param vehicleId
     * @return
     */
    Vehicle getVehicleById(int vehicleId);
}
